﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>file</title>
</head>
<body>
<ul>
    <li><a href="/">DB Administrator</a></li>
    <li><a href="/home/file">File Adminisrator</a></li>
</ul>
<hr />
<form action="/home/file" method="post">
<input type="text" name="path" /> 
<input type="submit" value="submit" />
</form>
<hr />
<fieldset>
    <legend>files</legend>
    <ul>
    @{List<string> dicts = ViewBag.Dicts;
        List<string> files = ViewBag.Files;}
    @if (dicts != null && dicts.Any())
    {
        foreach (var item in dicts)
        { 
            <li style="color:Blue;">@item &nbsp;&nbsp; d</li>
        }
    }
    @if (files != null && files.Any())
    {
        foreach (var item in files)
        { 
            <li><a href="@item">@(new System.IO.FileInfo(item).Name)</a></li>
        }
    }
    </ul>
</fieldset>
</body>
</html>
